package com.wzy.user.controller;

import com.wzy.user.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 描述  :
 * 创建人:    Wzy
 * 创建时间: 2020-06-07  0:51
 */
@RestController
public class UserController {
    //  @Reference(version = "1.0.0"/*, url = "dubbo://127.0.0.1:12345?version=1.0.0"*/)
    @Resource
    private UserService userService;

    @RequestMapping("/hello")
    public String sayHello() {
        return userService.sayHello();
    }

}
